package llama.ctrl;

import llama.core.ChatModelLocator;
import llama.core.IUser;
import llama.network.NetworkMessage;
import llama.network.NetworkMessage.Type;

public class AddContactCtrl implements IController{
	private IUser user;
	
	@Override
	public void execute() {
		System.out.println("ADD: " + user);
		ChatModelLocator.getChatModel().send(new NetworkMessage(user, Type.ADD_CONTACT));
	}

	public void setUser(IUser user) {
		this.user = user;
	}
}
